package com.gupaoedu.vip.aftermodify;

import com.gupaoedu.vip.aftermodify.model.dto.MemberDto;
import com.gupaoedu.vip.aftermodify.model.po.MemberPO;
import com.gupaoedu.vip.aftermodify.service.MemberService;
import com.gupaoedu.vip.aftermodify.service.impl.MemberServiceImpl;

public class AfterModifyTest {

    public static void main(String[] args) {
        MemberService memberService = new MemberServiceImpl();
        MemberPO memberPO = memberService.getMemberPO(1L);
        MemberDto memberDto = new MemberDto();
        memberDto.copy(memberPO);
        int count = memberService.getCouponCount(memberDto);
        System.out.println(count);
    }
}
